Optimal. Leaf size=30 \[ -\frac {d \tanh ^{-1}(\cos (a+b x))}{b^2}-\frac {(c+d x) \csc (a+b x)}{b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.02, antiderivative size = 30, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.111, Rules used = {4410, 3770} \[ -\frac {d \tanh ^{-1}(\cos (a+b x))}{b^2}-\frac {(c+d x) \csc (a+b x)}{b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3770
Rule 4410
Rubi steps
\begin {align*} \int (c+d x) \cot (a+b x) \csc (a+b x) \, dx &=-\frac {(c+d x) \csc (a+b x)}{b}+\frac {d \int \csc (a+b x) \, dx}{b}\\ &=-\frac {d \tanh ^{-1}(\cos (a+b x))}{b^2}-\frac {(c+d x) \csc (a+b x)}{b}\\ \end {align*}
________________________________________________________________________________________
Mathematica [B] time = 0.06, size = 131, normalized size = 4.37 \[ \frac {d \log \left (\sin \left (\frac {a}{2}+\frac {b x}{2}\right )\right )}{b^2}-\frac {d \log \left (\cos \left (\frac {a}{2}+\frac {b x}{2}\right )\right )}{b^2}-\frac {c \csc (a+b x)}{b}-\frac {d x \csc (a)}{b}+\frac {d x \csc \left (\frac {a}{2}\right ) \sin \left (\frac {b x}{2}\right ) \csc \left (\frac {a}{2}+\frac {b x}{2}\right )}{2 b}-\frac {d x \sec \left (\frac {a}{2}\right ) \sin \left (\frac {b x}{2}\right ) \sec \left (\frac {a}{2}+\frac {b x}{2}\right )}{2 b} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [B] time = 0.47, size = 62, normalized size = 2.07 \[ -\frac {2 \, b d x + d \log \left (\frac {1}{2} \, \cos \left (b x + a\right ) + \frac {1}{2}\right ) \sin \left (b x + a\right ) - d \log \left (-\frac {1}{2} \, \cos \left (b x + a\right ) + \frac {1}{2}\right ) \sin \left (b x + a\right ) + 2 \, b c}{2 \, b^{2} \sin \left (b x + a\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 0.75, size = 801, normalized size = 26.70 \[ \text {result too large to display} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.02, size = 52, normalized size = 1.73 \[ -\frac {d x}{b \sin \left (b x +a \right )}+\frac {d \ln \left (\csc \left (b x +a \right )-\cot \left (b x +a \right )\right )}{b^{2}}-\frac {c}{b \sin \left (b x +a \right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.38, size = 259, normalized size = 8.63 \[ -\frac {\frac {{\left (4 \, {\left (b x + a\right )} \cos \left (b x + a\right ) \sin \left (2 \, b x + 2 \, a\right ) - 4 \, {\left (b x + a\right )} \cos \left (2 \, b x + 2 \, a\right ) \sin \left (b x + a\right ) + {\left (\cos \left (2 \, b x + 2 \, a\right )^{2} + \sin \left (2 \, b x + 2 \, a\right )^{2} - 2 \, \cos \left (2 \, b x + 2 \, a\right ) + 1\right )} \log \left (\cos \left (b x + a\right )^{2} + \sin \left (b x + a\right )^{2} + 2 \, \cos \left (b x + a\right ) + 1\right ) - {\left (\cos \left (2 \, b x + 2 \, a\right )^{2} + \sin \left (2 \, b x + 2 \, a\right )^{2} - 2 \, \cos \left (2 \, b x + 2 \, a\right ) + 1\right )} \log \left (\cos \left (b x + a\right )^{2} + \sin \left (b x + a\right )^{2} - 2 \, \cos \left (b x + a\right ) + 1\right ) + 4 \, {\left (b x + a\right )} \sin \left (b x + a\right )\right )} d}{{\left (\cos \left (2 \, b x + 2 \, a\right )^{2} + \sin \left (2 \, b x + 2 \, a\right )^{2} - 2 \, \cos \left (2 \, b x + 2 \, a\right ) + 1\right )} b} + \frac {2 \, c}{\sin \left (b x + a\right )} - \frac {2 \, a d}{b \sin \left (b x + a\right )}}{2 \, b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 2.28, size = 88, normalized size = 2.93 \[ -\frac {d\,\ln \left ({\mathrm {e}}^{a\,1{}\mathrm {i}+b\,x\,1{}\mathrm {i}}\,1{}\mathrm {i}+1{}\mathrm {i}\right )}{b^2}+\frac {d\,\ln \left (d\,2{}\mathrm {i}-d\,{\mathrm {e}}^{a\,1{}\mathrm {i}}\,{\mathrm {e}}^{b\,x\,1{}\mathrm {i}}\,2{}\mathrm {i}\right )}{b^2}-\frac {{\mathrm {e}}^{a\,1{}\mathrm {i}+b\,x\,1{}\mathrm {i}}\,\left (c+d\,x\right )\,2{}\mathrm {i}}{b\,\left ({\mathrm {e}}^{a\,2{}\mathrm {i}+b\,x\,2{}\mathrm {i}}-1\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \left (c + d x\right ) \cos {\left (a + b x \right )} \csc ^{2}{\left (a + b x \right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________